package com.cesgroup.zw.spring.boot.library.echarts.gauge.simple;

import com.cesgroup.zw.spring.boot.echarts.build.EChartsOption;
import com.cesgroup.zw.spring.boot.echarts.component.Title;
import com.cesgroup.zw.spring.boot.echarts.component.Tooltip;

/**
 * <p>简单仪表盘</p>
 * @author ytj
 * @date 2019/7/2 13:27
 */
public class SimpleGaugeOption extends EChartsOption {

    public SimpleGaugeOption(SimpleGaugeParam param){
        this.setTooltip(new Tooltip());
        this.setTitle(new Title(){{
            this.setText(param.getTitle());
        }});
    }
}
